package com.sh.ndt.common;

import java.util.Enumeration;
import java.util.Properties;
import org.apache.log4j.Logger;

/**
 *
 * @author Prashanth N C
 */
public class PropertyFileReader {
    private static Logger LOGGER = Logger.getLogger(PropertyFileReader.class);

    private Properties propertyFile;

    /**
     * @return the propertyFile
     */
    public Properties getPropertyFile() {
        return propertyFile;
    }

    /**
     * @param propertyFile the propertyFile to set
     */
    public void setPropertyFile(Properties propertyFile) {
        this.propertyFile = propertyFile;

        Enumeration e = propertyFile.propertyNames();

        while (e.hasMoreElements()) {
            String key = (String) e.nextElement();
            LOGGER.debug(key + " -- " + propertyFile.getProperty(key));
        }
    }
}
